Fix garmin crash.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 18 Sep 2002 17:14:05 +0000 (17:14 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 18 Sep 2002 17:14:05 +0000 (17:14 +0000)
gpsbabel/garmin.c
gpsbabel/mingw/Makefile

index 7d25309885c121555be200926e71df3d7600b29e..c6a81fa799c2e20b8957fed010602d6ba22e2e01 100644 (file)
@@ -24,7 +24,6 @@
 #include "jeeps/gps.h"
 
 #define MYNAME "GARMIN" 
-static FILE *file_in;
 static const char *portname;
 
 static void
@@ -40,7 +39,6 @@ rw_init(const char *fname)
 static void
 rw_deinit(void)
 {
-       fclose(file_in);
 }
 
 static void
@@ -112,8 +110,6 @@ data_write(void)
                GPS_Way_Del(&way[i]);
        }
        free(way);
-
-
 }
 
 ff_vecs_t garmin_vecs = {
index 52465f0b28883430d7be81287982011344a9e846..228b9c309f2f43380292165d335ac9c846a00cfc 100644 (file)
@@ -1,4 +1,4 @@
-CC=/home/robertl/cross-tools/bin/i386-mingw32msvc-gcc -Iinclude
+CC=/home/robertl/cross-tools/bin/i386-mingw32msvc-gcc -Iinclude -I../coldsync
 VPATH=..
 
 gpsbabel.exe: